﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SuppKids.Core.Domain
{
	public class Ingredient : Entity
	{
		private ICollection<ProductConsumptionValue> consumptionValues = new List<ProductConsumptionValue>();
		
		[Required]
		public virtual Product Product { get; set; }
		
		[Required]
		public virtual Dish Dish { get; set; }
		
		public virtual ICollection<ProductConsumptionValue> ConsumptionValues
		{
			get { return consumptionValues; }
			set { consumptionValues = value; }
		}
	}
}